home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
workbench
/
addinfo
/
install addinfo
< prev
next >
Wrap
Text File
|
1995-02-27
|
2KB
|
110 lines
; Installation script for AddInfo
(transcript "Installing AddInfo...")
(copylib
(prompt "Install WhatIs library.")
(help @copylib-help)
(source "whatis/whatis.library")
(dest "libs:")
(confirm)
)
( if (= (exists "LIBS:ReqTools.library" (noreq)) 0)
(message "You need to get a copy of ReqTools.library\n"
"and copy it to your libs: directory")
)
(set name
(askdir
(prompt "Install AddInfo where?")
(help @askdir-help)
(default "SYS:Utilities")
)
)
(copyfiles
(source "AddInfo")
(infos)
(dest name)
)
(set prefsdest
(askdir
(prompt "Install AddInfo Prefs where?")
(help @askdir-help)
(default "SYS:Prefs")
)
)
(set prefstype
(askchoice
(prompt "Which type of prefs editor do you want?")
(help @askoptions-help)
(choices "GadTools" "MUI")
(default 0)
)
)
(if (= prefstype 0)
(copyfiles ??
(source "AddInfoPrefs")
(dest prefsdest)
(infos)
)
(copyfiles ??
(source "AddInfoPrefs_MUI")
(newname "AddInfoPrefs")
(dest prefsdest)
(infos)
)
)
(set prefs
(askchoice
(prompt "Install default config where?")
(help @askchoice-help)
(choices "ENV: and ENVARC:" "S" )
(default 0)
)
)
(if (= prefs 0) ; conditional test
(
(copyfiles
(source "AddInfo.prefs")
(dest "ENV:")
)
(copyfiles
(source "AddInfo.prefs")
(dest "ENVARC:")
)
)
(copyfiles
(source "AddInfo.prefs")
(dest "S:")
)
) ; end of if
(set what
(askbool
(prompt "Copy FileTypes to S:")
(help "It's up to YOU.")
(choices "Yes" "No")
(default 0)
)
)
(if (= what 1) ; conditional test
(copyfiles
(source "FileTypes")
(dest "S:")
)
)
(set @default-dest name)
(exit)